home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
logs
/
logbook
/
dxpdnqsl.prg
< prev
next >
Wrap
Text File
|
1990-06-25
|
4KB
|
132 lines
*:*********************************************************************
*:
*: Program: DXPDNQSL.PRG
*:
*: System: PC-HAM Logbook
*: Author: Joe Kasser G3ZCZ
*: Copyright (c) 1990, Joe Kasser
*: Last modified: 06/25/89 16:03
*:
*: Called by: LOGMISCF.PRG
*:
*: Calls: QSLPRINT.PRG
*:
*: Uses: &LOGBOOK.DBF
*:
*: Indexes: &LOGNDX
*:
*: Documented 05/04/90 at 13:49 SNAP! version 3.12f
*:*********************************************************************
* DXPEDITION SPECIAL, QSL'S ONE CONTACT PER BAND FOR EACH call IN LOG
* will not print one for duplicates on each band
* WILL NOT PRINT CONTEST OR ALREADY QSL'D UNLESS LOGBOOK = 'QSL'
* FOR 5 BANDS ONLY
USE &logbook INDEX &logndx
GOTO bottom
STORE call TO lcall
GOTO top
STORE 'O' TO tqsl
STORE call TO fcall
ACCEPT 'All QSOs, just those owed and queued (A O or Q) ? ' TO tqsl
?
@ 24, 0 SAY "Starting call ?"
@ 24, 16 GET fcall
@ 24, 40 SAY "Ending call ?"
@ 24, 54 GET lcall
READ
STORE TRIM(fcall) TO fcall
FIND &fcall
* ASSUME SINGLE UNLESS TOLD OTHERWISE
DO WHILE (.not. EOF() ) .and. (call < lcall)
IF (SUBSTR(CALL,1,1) <> '-' .and. qslsent = '-') .or. logbook = 'QSL'
IF tqsl = 'O' .and. qslrx = 'R' .or. tqsl = 'A' .OR. qslrx = 'Q'
STORE ' ' TO b1
STORE ' ' TO b2
STORE ' ' TO b3
STORE ' ' TO b4
STORE ' ' TO b5
STORE CALL TO tcall
IF qslrx = 'Q'
qslrx = '-'
REPLACE qslrx WITH '-'
ENDIF
DO WHILE CALL = tcall .and. .not. EOF()
STORE .F. TO pqso
DISP
IF b1 = ' '
*FIRST QSO
STORE band TO b1
STORE .t. TO pqso
ELSE
IF band = b1
*worked
ELSE
IF b2 = ' '
STORE band TO b2
STORE .t. TO pqso
ELSE
IF band = b2
*worked
ELSE
IF b3 = ' '
STORE band TO b3
STORE .t. TO pqso
ELSE
IF band = b3
*worked
ELSE
IF b4 = ' '
STORE band TO b4
STORE .t. TO pqso
ELSE
IF band = b4
ELSE
IF b5 = ' '
STORE band TO b5
STORE .t. TO pqso
ELSE
IF band = b5
*worked on all bands
ELSE
STORE band TO b5
STORE .t. TO pqso
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
IF pqso
?? '**QSL**'
IF logbook = 'QSL'
* Don't replace it
ELSE
REPLACE qslsent WITH 'B'
ENDIF
DO qslprint
ENDIF
SKIP
ENDDO
ELSE
DISP
SKIP
ENDIF
ELSE
DISP
SKIP
ENDIF
ENDDO
USE
RELEASE tcall,tband,fcall,lcall
RELEASE b1,b2,b3,b4,b5,pqso,joe,label2,tqsl
RETURN
*: EOF: DXPDNQSL.PRG